<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;


// 资源控制器 restful
Route::resource('sign','demo/sign');
// 功能控制器
Route::post('v2/comment','xiaoan/comment/saveV2');

/*
 不同host的api可在NGINX做代理服务
*/
//小程序路由必须使用post方法
//用户
Route::post('api/verification','yunda/user/verification');//验证码
Route::post('api/search','yunda/user/order_search');//物流单号查询
Route::post('api/wxLogin','yunda/user/wxLogin');//获取用户openid
Route::post('api/login','yunda/user/login');//用户注册
Route::post('api/register','yunda/user/register');//用户登录
Route::post('api/person','yunda/user/save');//用户个人信息保存
Route::post('api/user','yunda/user/read');//获取用户信息
Route::post('api/fee','yunda/user/get_fee');//运费时效查询
Route::post('api/mfx','yunda/user/myFenxiao');//我的分销
Route::post('api/phb','yunda/user/paihangbang');//分销排行榜
Route::post('api/myj','yunda/user/myyongjin');//我的佣金记录
Route::post('api/cash','yunda/user/getcash');//我的提现申请
Route::post('api/cash/record','yunda/user/cash_record');//我的提现申请
Route::post('api/user/bk','yunda/user/bangka');//绑定提现银行卡
Route::post('api/user/card','yunda/user/mycard');//绑定提现银行卡
Route::post('api/user/friend','yunda/user/friend');//分销我的好友
Route::post('api/user/yjrecord','yunda/user/yjjl');//分销我的佣金记录
Route::post('api/poster','yunda/user/poster');//分销海报


//用户寄快递
Route::post('api/order/add','yunda/order/save');//寄单件快递
Route::post('api/order','yunda/order/index');//获取快递订单
Route::post('api/batch','yunda/order/batch_send');//批量寄件
Route::post('api/order/one','yunda/order/read');//订单详情
Route::post('api/order/cancel','yunda/order/cancel_order');//取消订单
Route::post('api/order/new','yunda/order/new_order');//最新订单
Route::post('api/order/get_goods','yunda/order/get_goods');//获取快件类型

//用户收件寄件地址
Route::post('api/address','yunda/address/index');
Route::post('api/address/add','yunda/address/save');
Route::post('api/address/one','yunda/address/read');//获取用户某条地址内容
Route::post('api/address/delete','yunda/address/delete');//获取用户某条地址内容


//积分商城
Route::post('api/shop','yunda/shop/index');//积分商品显示
Route::post('api/shop/duihuan','yunda/shop/score_change');//积分兑换
Route::post('api/myduihuan','yunda/shop/mychange');//我的兑换
Route::post('api/shop/xq','yunda/shop/detail');//商品详情

//我的活动
Route::post('api/active/award','yunda/active/luck_draw');//抽奖
Route::post('api/active','yunda/active/index');//活动列表
Route::post('api/myjiangping','yunda/active/myaward');//活动列表
//签到
Route::post('api/sign','yunda/qiandao/save');
Route::post('api/sign/index','yunda/qiandao/index');//获取用户签到信息


//网点查询
Route::post('api/map','yunda/map/index');//网点查询
Route::post('api/phone','yunda/map/hot_line');//客服热线

//地区数据查询
Route::post('api/china/get','yunda/china/read');

//运费查询
Route::post('api/postage/get','yunda/postage/index');

//测试
Route::post('api/sign/index1','yunda/base/test');//获取用户签到信息

//小程序支付
Route::post('api/pay','yunda/pay/PayXcx');//获取小程序支付参数


//会员
Route::post('api/member/index','yunda/member/index');//获取会员级别设定
Route::post('api/member/sq','yunda/member/read');//申请会员

//业务员
Route::post('api/ywy/index','yunda/yewuyuan/index');//业务员待取件列表
Route::post('api/ywy/qs','yunda/yewuyuan/save');//业务员确认签收快件金额
Route::post('api/ywy/daohang','yunda/yewuyuan/map');//业务员导航



//miss路由，没匹配到该路由时执行该路由
//Route::miss('yunda/base/miss');